BackgroundWorkObserverImpl

Implements BackgroundWorkObserver behavior for iOS background generation.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
private val messageFlow: MutableStateFlow<Pair<String, String>>
Link copied to clipboard
private val resultFlow: MutableStateFlow<BackgroundWorkResult>
Link copied to clipboard
private val stateFlow: MutableStateFlow<Boolean>

Functions

Link copied to clipboard
open override fun dismissResult()

Executes the dismissResult step in the SDAI background work feature layer.

Link copied to clipboard
open override fun hasActiveTasks(): Boolean

Executes the hasActiveTasks step in the SDAI background work feature layer.

Link copied to clipboard
open override fun observeResult(): Flow<BackgroundWorkResult>

Loads SDAI data through observeResult.

Link copied to clipboard
open override fun observeStatus(): Flow<BackgroundWorkStatus>

Loads SDAI data through observeStatus.

Link copied to clipboard
open override fun postCancelSignal()

Executes the postCancelSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postFailedSignal(t: Throwable)

Executes the postFailedSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postStatusMessage(title: String, subTitle: String)

Executes the postStatusMessage step in the SDAI background work feature layer.

Link copied to clipboard
open override fun postSuccessSignal(result: List<AiGenerationResult>)

Executes the postSuccessSignal step in the SDAI background work feature layer.

Link copied to clipboard
open override fun refreshStatus()

Executes the refreshStatus step in the SDAI background work feature layer.